import request from '@/utils/request'
/**
 * 获取皮肤列表
 * http://192.168.88.247:4999/web/#/209/1653
 * @param {*} params
 * @returns
 */
export function getSkinList (params) {
  return request({
    url: process.env.VUE_APP_THEME_API + '/theme/api/theme/cs/image',
    method: 'get',
    params,
    noAppId: true
  })
}

/**
 * 获取皮肤列表 3.1.6.17可以显示桌面主题
 * http://192.168.88.247:4999/web/#/209/1653
 * @param {*} params
 * @returns
 */
// eslint-disable-next-line sonarjs/no-identical-functions
export function getSkinList_version (params) {
  return request({
    url: process.env.VUE_APP_THEME_API + '/api/group/cs/image',
    method: 'get',
    params,
    noAppId: true,
    headers: {
      'X-Resource-Type': 'desk-theme'
    }
  })
}
